<!--
 * @Author: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @Date: 2022-08-19 09:00:15
 * @LastEditors: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @LastEditTime: 2022-08-19 15:37:18
 * @FilePath: \后端管理系统\app\src\views\Users\component\UserDelete.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <el-dialog
    title="提示"
    :visible.sync="dialogVisible"
    width="30%"
    :before-close="closeDialog"
  >
    <span>确认删除吗?</span>
    <span slot="footer" class="dialog-footer">
      <el-button  @click="resect()">取 消</el-button>
      <el-button type="primary" @click="submit()">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: {
    dialogVisible: {
      type: Boolean,
      default: false,
    },
    
  },
  methods: {
    submit(){
        this.$emit("submit");
    },
      // 关闭x弹框
    closeDialog() {
      this.$emit("close-dialog");
    },
       // 关闭取消弹框
    resect(){
      this.$emit('close-dialog')
    }
  },
};
</script>